/*
 * Copyright (c) 2017 Qunar.com. All Rights Reserved.
 */
package com.guoyu.project.common.ueditor.model;

import java.util.List;

/**
 * @author: libo Date: 17-6-20 Time: 下午5:36
 * @version: \$Id$
 */
public class UeditorResult {

    private String state;
    /**
     * 原文件名称
     */
    private String original;
    /**
     * 保存文件名称
     */
    private String title;
    /**
     * 文件大小
     */
    private String size;
    /**
     * 文件类型
     */
    private String type;
    /**
     * 上传后访问地址
     */
    private String url;
    /**
     * 文件类型
     */
    private String source;
    /**
     * 开始位置
     */
    private int start;
    /**
     * 总共文件数
     */
    private int total;

    private List<UeditorResult> list;

    public UeditorResult(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getOriginal() {
        return original;
    }

    public void setOriginal(String original) {
        this.original = original;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<UeditorResult> getList() {
        return list;
    }

    public void setList(List<UeditorResult> list) {
        this.list = list;
    }

    public static UeditorResult success() {
        return new UeditorResult("SUCCESS");
    }

    public static UeditorResult fail(String info) {
        return new UeditorResult(info);
    }
}
